﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>菜单管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="/Plugin/layui/css/layui.css" rel="stylesheet" />
    <link href="/Style/common.css" rel="stylesheet" />
</head>
<body>
    <br />
    <form class="layui-form" lay-filter="formsearch">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">文章类别</label>
                <div class="layui-input-inline">
                    <select name="category" lay-filter="category" id="category"></select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">文章标题</label>
                <div class="layui-input-inline">
                    <input type="text" name="art_title" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-hide-lg layui-hide-md"></label>
                <div class="layui-input-inline">
                    <button class="layui-btn" lay-submit lay-filter="search" id="search"><i class="layui-icon layui-icon-search"></i></button>
                    <button type="reset" class="layui-btn layui-btn-primary" id="post"><i class="layui-icon layui-icon-release"></i></button>
                </div>
            </div>
        </div>
    </form>
    <div class="layui-fluid">
        <table class="layui-table" lay-filter="tableArticle" id="tableArticle"></table>
    </div>



    <div id="layerArticle" style="display:none;">
        <div style="padding:20px;">
            <form class="layui-form" lay-filter="formPost" id="formPost">
                <div class="layui-form-item layui-hide">
                    <label class="layui-form-label layui-hide-xs">文章ID</label>
                    <div class="layui-input-block">
                        <input type="text" name="art_id" id="art_id"   autocomplete="off" class="layui-input" disabled>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-hide-xs">文章标题</label>
                    <div class="layui-input-block">
                        <input type="text" name="art_title" id="art_title" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-hide-xs">文章分类</label>
                    <div class="layui-input-block">
                        <select name="art_category" id="art_category" required lay-verify="required"></select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-hide-xs">草稿箱</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="art_state" title="草稿" id="art_state">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label layui-hide-xs">文章摘要</label>
                    <div class="layui-input-block">
                        <textarea name="art_intro" placeholder="请输入内容" class="layui-textarea" id="art_intro"></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label layui-hide-xs">文章内容</label>
                    <div class="layui-input-block">
                        <textarea name="art_content" placeholder="请输入内容" class="layui-textarea" id="art_content"></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-hide">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="art_post" id="art_post">隐藏的提交按钮</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <script type="text/html" id="toolbarDone">
        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="delete">
                <i class="layui-icon layui-icon-delete"></i>
            </button>
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">
                <i class="layui-icon layui-icon-edit"></i>
            </button>
        </div>
    </script>
    <script src="/Plugin/layui/layui.js"></script>
    <script src="/Plugin/js/article/article.js"></script>
</body>
</html>